﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GestioneTraccia
{
    class Club
    {
        List<Socio> s = new List<Socio>();
     
        public void Stampa(string cognome)
        {
            try
            {
                s = GestioneFile.Leggi();
                foreach (Socio z in s)
                {
                    if (z.Cognome == cognome)
                    {
                        continue;
                    }
                    Console.WriteLine(z);
                }
            }catch(Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }

    }
}
